import React, {useEffect} from 'react';
import {useParams} from "react-router-dom";
import {getDepartmentByHoscode} from "@/api/hosp";

function Index() {
    const {hoscode} = useParams();
    useEffect(()=>{
        getDepartmentByHoscode(hoscode as string).then(value=>{
            console.log(value);
        })
    },[]);
    return (
        <div>排班界面:{hoscode}</div>
    );
}

export default Index;